# -*- coding: utf-8 -*-

from django import forms as djforms
from dicthash.forms import DhForm, TagsField, CharFieldEscapeHtml, CharFieldSanitizeHtml, TagNameField


class LentaForm(DhForm):
    """ """
    name = CharFieldEscapeHtml(max_length=100) 
    desc = CharFieldSanitizeHtml()
    
    
class NoteForm(DhForm):
    """ """
    title = CharFieldEscapeHtml(max_length=100) 
    twit = CharFieldEscapeHtml(max_length=140)
    body = CharFieldSanitizeHtml()
    pubDate = djforms.DateTimeField(required=False)
    isDraft = djforms.BooleanField(required=False)
    tags = TagsField(required=False)
    
    
class TagForm(DhForm):
    """ """
    name = TagNameField()   